package main

import "fmt"

//测试不用中间值，交换a、b的值
func main() {
	a := 11
	b := 33
	fmt.Printf("交换前a=%v,b=%v \n", a, b)
	a = a + b
	b = a - b
	a = a - b
	fmt.Printf("交换后a=%v,b=%v \n", a, b)
}
